package levelrewind.android.app.vo;

import android.graphics.Bitmap;

public class User implements Comparable<User>{
	private long Id;
	private String Email;
	private String Name;
	private long Score;
	private Bitmap Picture;
	
	public long getId() {
		return Id;
	}
	public void setId(long id) {
		Id = id;
	}
	public String getEmail() {
		return Email;
	}
	public void setEmail(String email) {
		Email = email;
	}
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	public long getScore() {
		return Score;
	}
	public void setScore(long score) {
		this.Score = score;
	}
	public Bitmap getPicture() {
		return Picture;
	}
	public void setPicture(Bitmap picture) {
		this.Picture = picture;
	}
	
	// Descending order
	public int compareTo(User another) {
		if (Score < another.Score) return 1;
		else if (Score > another.Score) return -1;
		else return 0; 
	}
	
}
